combobox intem does not show in crystal report [migrated]

Posted by upitnik on Programmers See other posts from Programmers or by upitnik
Published on 2014-06-04T09:45:49Z Indexed on 2014/06/04 15:42 UTC
Read the original article Hit count: 267

Filed under:

I am creating a simple printing application using crstal reports, C# and visual studio 2010. On my winform I have some textboxes, comboboxes. Comboboxes are using data for fill from the XML file. On my report I created some parameters and linked with the selection of comboboxes.

When I use: cryRpt.SetParameterValue("PAR3", cmbSome.SelectedIndex); on my report I see the 0 or 1 depending my item selection. Now I want to display, not the index but the value ie: Monday.

If I use selectedItem, selectedText or selectedValue i do not see anything on my report.

To see what happend i put another textbox on my form and linked it with the combobox selection as:

txtProe.Text = Convert.ToString(cmbSome.SelectedItem); or txtProe.Text = cmbSome.Text;

In both case when I click the button I see that my selection from cmbSome is passed to it.

Does anyone knows what happens here ??!

© Programmers or respective owner

Related posts about c#